<?php

if (!function_exists('lang')) {

	function lang($line, $variables=array()) {
		$CI = & get_instance();
		$line = $CI->lang->line($line);

		if (!empty($variables))
			return vsprintf($line, $variables);
		else
			return $line;
	}

}

function url($utf8_string) {

	$CI = & get_instance();
    $CI->load->helper('text');  //Load helper for utf characters conversion

    return url_title(convert_accented_characters($utf8_string));
}

// ------------------------------------------------------------------------
/* End of file language_helper.php */
/* Location: ./system/helpers/language_helper.php */